
public class MethodEx2 {
	int var;
	
	public void setInt(int var){
		var = var;
	}
	public int getInt(){
		return var;
	}
	
	public static void main(String[]args){
		MethodEx2 me = new MethodEx2();
		me.setInt(100);
		System.out.println("var :"+me.getInt());
	}
}
